; RUN: llvm-pdbutil yaml2pdb -pdb=%t.pdb %p/Inputs/debug-subsections.yaml
; RUN: llvm-pdbutil pdb2yaml -all -no-file-headers %t.pdb | FileCheck --check-prefix=YAML %s

YAML:      Modules:
YAML-NEXT:   - Module:          Foo.obj
YAML-NEXT:     ObjFile:         Foo.obj
YAML-NEXT:     Subsections:
YAML-NEXT:       - !CrossModuleExports
YAML-NEXT:         Exports:
YAML-NEXT:           - LocalId:         4852
YAML-NEXT:             GlobalId:        9283
YAML-NEXT:           - LocalId:         2147487875
YAML-NEXT:             GlobalId:        9123
YAML:        - Module:          Bar.obj
YAML-NEXT:     ObjFile:         Bar.obj
YAML-NEXT:     Subsections:
YAML-NEXT:       - !CrossModuleExports
YAML-NEXT:         Exports:
YAML-NEXT:           - LocalId:         4265
YAML-NEXT:             GlobalId:        6097
YAML-NEXT:           - LocalId:         4297
YAML-NEXT:             GlobalId:        4677
YAML-NEXT:       - !CrossModuleImports
YAML-NEXT:         Imports:
YAML-NEXT:           - Module:          Foo.obj
YAML-NEXT:             Imports:         [ 4852, 2147487875 ]
YAML:       - Module:          'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
YAML-NEXT:    ObjFile:         'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
YAML-NEXT:    SourceFiles:
YAML-NEXT:      - 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
YAML-NEXT:    Subsections:
YAML-NEXT:      - !FileChecksums
YAML-NEXT:        Checksums:
YAML-NEXT:          - FileName:        'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
YAML-NEXT:            Kind:            MD5
YAML-NEXT:            Checksum:        A0A5BD0D3ECD93FC29D19DE826FBF4BC
YAML-NEXT:          - FileName:        'f:\dd\externalapis\windows\10\sdk\inc\winerror.h'
YAML-NEXT:            Kind:            MD5
YAML-NEXT:            Checksum:        1154D69F5B2650196E1FC34F4134E56B
YAML-NEXT:      - !Lines
YAML-NEXT:        CodeSize:        10
YAML-NEXT:        Flags:           [  ]
YAML-NEXT:        RelocOffset:     100016
YAML-NEXT:        RelocSegment:    1
YAML-NEXT:        Blocks:
YAML-NEXT:          - FileName:        'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
YAML-NEXT:            Lines:
YAML-NEXT:              - Offset:          0
YAML-NEXT:                LineStart:       5
YAML-NEXT:                IsStatement:     true
YAML-NEXT:                EndDelta:        0
YAML-NEXT:              - Offset:          3
YAML-NEXT:                LineStart:       6
YAML-NEXT:                IsStatement:     true
YAML-NEXT:                EndDelta:        0
YAML-NEXT:              - Offset:          8
YAML-NEXT:                LineStart:       7
YAML-NEXT:                IsStatement:     true
YAML-NEXT:                EndDelta:        0
YAML-NEXT:            Columns:
YAML-NEXT:      - !InlineeLines
YAML-NEXT:        HasExtraFiles:   false
YAML-NEXT:        Sites:
YAML-NEXT:          - FileName:        'f:\dd\externalapis\windows\10\sdk\inc\winerror.h'
YAML-NEXT:            LineNum:         26950
YAML-NEXT:            Inlinee:         22767
